package com.ai3d.rfid.common.proxy

import android.widget.Toast
import com.ai3d.rfid.base.app.App
import com.bj.disc.activity.MainActivity
import com.blankj.utilcode.util.ActivityUtils

/**
 * @ProjectName : Trias
 * @Author : weijinsong
 * @Time : 2022/11/21 16:59
 * @Description : toast代理
 */
object ToastProxy {

    fun showShort(text: CharSequence) {

            Toast.makeText(ActivityUtils.getTopActivity(), text, Toast.LENGTH_SHORT).show()
    }

    fun showShort(resId: Int) {

            Toast.makeText(ActivityUtils.getTopActivity(), resId, Toast.LENGTH_SHORT).show()
    }

    fun showLong(text: CharSequence) {
        //

            Toast.makeText(ActivityUtils.getTopActivity(), text, Toast.LENGTH_LONG).show()
    }

    fun showLong(resId: Int) {

            Toast.makeText(ActivityUtils.getTopActivity(), resId, Toast.LENGTH_LONG).show()
    }
}